package main

import (
	"time"
	"fmt"
)

func main()  {
	ch1:=make(chan int)
	go sendData1(ch1)
		for v:=range ch1{
			fmt.Println(v)
		}
	fmt.Println("main....over....")
}
func sendData1(ch1 chan int)  {
	for i:=0;i<10 ;i++  {
		time.Sleep(250*time.Millisecond)
		ch1<-i
	}
	close(ch1)
}
